package com.cn.controller;

import com.cn.common.Result;
import com.cn.service.TestEmpService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;


/**
 * 员工表(TestEmp)表控制层
 *
 * @author makejava
 * @since 2023-02-05 12:32:49
 */
@RestController
@RequestMapping("testEmp")
@CrossOrigin
public class TestEmpController {
    /**
     * 服务对象
     */
    @Resource
    private TestEmpService testEmpService;


    /**
     * 一对一对部门
     */
    @GetMapping("/selectByIdUser/{id}")
    public Result selectByIdUser(@PathVariable("id") String id){
        Result result=testEmpService.selectByIdUser(id);
        return result;
    }


}

